#pragma once
#include "../header/const.h"

class UserInfo {
public:
	int uid;
	std::string userName;
	std::string userEmail;
	std::string passwd;
	std::string userNick;
	std::string userDesc;
	int userSex;
	std::string userIcon;
	std::string userBack;
	UserInfo() {

	}
	UserInfo(
		const std::string& name,
		const std::string& email,
		const std::string& pass,
		const int id=-1
		):userName(name), userEmail(email), passwd(pass),uid(id) {

	}
	void display() {
		std::cout << "uid:\t" << uid << 
			"userName:\t" << userName << 
			"userEmail:\t" << userEmail << 
			"passwd:\t" << passwd <<
			"userNick:\t" << userNick <<
			"userDesc:\t" << userDesc << 
			"userSex:\t" << userSex << 
			"userIcon:\t" << userIcon <<
			"uuserBack:\t" << userBack <<
			std::endl;

	}
};